import { IActionData } from '../types/IContext';

export const staticModeList = [
  {
    id: 2,
    svg: 2,
    title: '快煮饭'
  },
  {
    id: 3,
    svg: 3,
    title: '精煮饭'
  },
  {
    id: 4,
    svg: 4,
    title: '煮粥'
  },
  {
    id: 5,
    svg: 5,
    title: '煲汤'
  },
  {
    id: 6,
    svg: 6,
    title: '卤煮'
  },
  {
    id: 7,
    svg: 7,
    title: '热饭'
  },
  {
    id: 1,
    svg: 1,
    title: '保温'
  }
];

export const staticActionList: IActionData[] = [
  {
    id: 1,
    title: '工作时长',
    svg: 'time',
    val: '未设置',
    key: 'workTime'
  },
  {
    id: 2,
    title: '预约',
    svg: 'app',
    val: '未设置',
    key: 'appointment'
  }
];

export const staticClockList = [
  {
    id: 1,
    title: '口感',
    checked: false,
    svg: 'smile',
    val: '未设置',
    key: 'taste'
  }
];
export const staticTasteList = [
  {
    id: 1,
    title: '嚼劲',
    checked: false
  },
  {
    id: 2,
    title: '适中',
    checked: false
  },
  {
    id: 3,
    title: '软烂',
    checked: false
  }
];

export const tempColumn = () => {
  let list = [];
  for (let i = 80; i <= 200; ) {
    list.push({ text: i, value: i });
    i = i + 5;
  }

  return list;
};

// 定时时间
export const timeColumn = () => {
  let list = [];
  for (let i = 0; i <= 1440; ) {
    list.push({ text: `${i}`, value: `${i}` });
    i = i + 10;
  }

  return list;
};
// 预约时间 3h
export const timeColumn3 = () => {
  let list = [];
  for (let i = 180; i <= 1440; ) {
    list.push({ text: `${i}`, value: `${i}` });
    i = i + 10;
  }

  return list;
};
// 预约时间 2h
export const timeColumn2 = () => {
  let list = [];
  for (let i = 120; i <= 1440; ) {
    list.push({ text: `${i}`, value: `${i}` });
    i = i + 10;
  }

  return list;
};

// 工作时长 煮粥 1-2h
export const workTime12 = () => {
  let list = [];
  for (let i = 60; i <= 120; ) {
    list.push({ text: `${i}`, value: `${i}` });
    i = i + 5;
  }

  return list;
};
// 工作时长 煲汤 1-4h
export const workTime14 = () => {
  let list = [];
  for (let i = 60; i <= 240; ) {
    list.push({ text: `${i}`, value: `${i}` });
    i = i + 5;
  }

  return list;
};

// 工作时长 卤煮 5-60min
export const workTime560 = () => {
  let list = [];
  for (let i = 70; i <= 180; ) {
    list.push({ text: `${i}`, value: `${i}` });
    i = i + 5;
  }

  return list;
};
// 预约时间-min
export const appColumn = () => {
  let list = [];
  for (let i = 0; i <= 1440; ) {
    list.push({ text: `${i}`, value: `${i}` });
    i = i + 10;
  }

  return list;
};

// 预约时间-时
export const timeHourColumn = () => {
  let list = [];
  for (let i = 1; i <= 13; ) {
    list.push({ text: i, value: i });
    i = i + 1;
  }

  return list;
};
// 预约时间-分
export const timeMinColumn = () => {
  let list = [];
  for (let i = 1; i <= 60; ) {
    list.push({ text: i, value: i });
    i = i + 1;
  }

  return list;
};

export const deviceId = 'CMCC-591280-B812DACEFE42';
